using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.ESharp.Compiler
{
    public enum ESharpErrorCode
    {
        //General errors
        ES0001 = 1, //unknown element
        ES0002,
        ES0003,
        ES0004,
        ES0005, //IChildRelationshipMembersWarning
        ES0006, //IGetInfoObjectWarning
        ES0007,
        ES0008,
        ES0009,

        //Family errors
        ES1000 = 1000,
        ES1001,
        ES1002,
        ES1003,
        ES1004,

        //Inheritence errors
        ES1100,
        ES1101,
        ES1102,
        ES1103,
        ES1104,
        ES1105,
        ES1106,
        ES1107,
        ES1108,

        //Field errors
        ES2000 = 2000,

        //Relationship Errors
        ES3000 = 3000, 
        ES3001, 
        ES3002,
        ES3003,
        ES3004,
        ES3005,
        ES3006,
        ES3007,
        ES3008,
        ES3009,

        //Rule errors
        ES4000 = 4000,
        ES4001,
        ES4002,
        ES4003,
        ES4004,

        //Validation errors
        ES5000 = 5000,
        ES5001,
        ES5002,
        ES5003,
        ES5004,
        ES5005,

        //Access errors
        ES5102,
        ES5105,

        //Authorization rules
        ES5202,
        ES5205,

        //Template errors
        ES6000 = 6000,
        ES6001,
        ES6002
    }
}
